BITS 16

[extern startUp]
[extern shell]

global show
global _start


_start:
  mov ax,cs
  mov ss,ax
  mov ax,0b800h
  mov es,ax
  mov byte [es:0],'K'
  mov byte [es:1],07h  
  call dword startUp

keyBoard:
  mov ah,00h
  int 16h
  cmp al,0dh
  mov byte [es:0],al
  mov byte [es:1],07h 
  jne keyBoard
  call dword shell
  jmp keyBoard

show:
  mov ax,0b800h
  mov es,ax
  mov byte [es:0],'o'
  mov byte [es:1],07h
  ret